# -*- coding: utf-8 -*-
from  flask import Flask,render_template
from pymongo import MongoClient

mc=MongoClient()
bh=mc['maoyan2']['mao']
content=[x for x in bh.find()]
    
app=Flask(__name__)

@app.route('/mo')

def index():
    return render_template('mo.html',data=content)

if __name__=='__main__':
    app.run()